package com.ruoyi.maintenance.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维护人员分配对象 maintenance_assign
 * 
 * @author silence
 * @date 2025-07-21
 */
public class MaintenanceAssign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分配ID */
    private Long id;

    /** 计划ID */
    @Excel(name = "计划ID")
    private Long planId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 分配类型(1-负责人,2-实施人) */
    @Excel(name = "分配类型(1-负责人,2-实施人)")
    private Long assignType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAssignType(Long assignType) 
    {
        this.assignType = assignType;
    }

    public Long getAssignType() 
    {
        return assignType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("userId", getUserId())
            .append("assignType", getAssignType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
